<div class="row"> 
	<h3 class="page-header">节点管理<small>/<gt name='info.id' value='0'>修改<else/>添加</gt>节点</small></h3>
</div>
<div class="row">
	<div class="panel panel-default">
		<div class="panel-body">
			<form role="form" id="myform" method="post"  class="form-horizontal">
				<div class="form-group">
			        <label class="col-sm-3 control-label">父节点：<span class="c-red">*</span></label>
			        <div class="col-sm-4 input-group">
			        	<select class="form-control" id="pid" name="pid">
			        		<option value="0" >无上级节点</option>
			        		<volist name='nodeList' id='node'>
			        			<lt name='node.num' value='3'>
			        				<option value="{$node.id}"<eq name='node.id' value='$info.pid'> selected </eq> ><eq name="node.pid" value="0">|-<else/>|&nbsp;|-</eq>{$node.title}</option>
			        			</lt>
			        		</volist>
						</select>           
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">节点名称：<span class="c-red">*</span></label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control required" name="title" value="{$info.title}" maxlength='10'>
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">节点路径：<span class="c-red">*</span></label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control required" name="name" value="{$info.name}" maxlength='40'>
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">排序：</label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control digits" name="sort" value="{$info.sort|default=100}">
			        </div>
			    </div>
			    <div class="form-group">
					<label  class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-4 input-group">
			            <label class="radio-inline">
			                <input type="radio" value="1" name="status" <neq name="info.status" value="0">checked</neq>>启用
			            </label>
			            <label class="radio-inline">
			                <input type="radio" value="0" name="status" <eq name="info.status" value="0">checked</eq>>禁用
			            </label>
		            </div>
		        </div>
		        <input type='hidden' name='id' value='{$info.id}'>
		        <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-5">
				        <button class="btn btn-primary" type="submit">提交</button>
				       	<a href="{:U('Node/index')}"><button class=" btn btn-default" type="button">返回</button></a>
		       		</div>
		       	</div>
			</form>
		</div>
	</div>
</div>